package com.niuniu.rushdorm.mapper;

import com.niuniu.rushdorm.pojo.entity.Credential;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
 * @author rambo
 * 2022/11/25
 */
@Mapper
public interface AuthMapper {
    @Select("select * from auth where uid = #{uid} and is_del = 0")
    Credential GetAuth(long uid);
    @Update("update auth set password = #{pwd} where uid = #{uid}")
    int UpdatePwd(String pwd,long uid);

}
